<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
     <!--linlian 2012-4-9独立一个cache配件文件居然报错，现在只能写在这个配置文件中， 自建一个HeaderCache以存放导航数据 -->
    <bean id="headerCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
        <property name="cacheManager">
        	<ref bean="cacheManager"/>
        </property>
        <property name="cacheName">
        	<value>headerCache</value>
        </property>
        <property name="maxElementsInMemory">
        	<value>2048</value>
        </property>
        <property name="eternal">
        	<value>true</value>
        </property>
        <property name="overflowToDisk">
        	<value>true</value>
        </property>
    </bean>

    <bean id="headerCache" class="cn.firstsoft.firstframe.plugins.cache.HeaderCache"  autowire="byName">
        <property name="cache">
        	<ref local="headerCacheBackend"/>
        </property>
    </bean>
</beans>
